<template>
  <el-table-column :prop="col.prop" :label="col.label" :fixed="col.fixed" :align="col.align?col.align:'center'" :width="col.width?col.width:150">
    <template v-if="col.children && col.children.length">
      <my-column v-for="(item, index) in col.children" :key="index" :col="item"></my-column>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: "MyColumn",
  props: {
    col: {
      type: Object,
    },
  },
};
</script>
<style scoped>
</style>